The phrase "to correct the wrong" means to fix or make right something that was done in a harmful or unjust way.